package com.learning.spring.ioc.bean.xml.manager;

/**
 * ClassName: BeanManagerFactory
 * Description: Bean 装配工厂
 * Date: 2018/7/26 10:36 【需求编号】
 *
 * @author Sam Sho
 * @version V1.0.0
 */
public class BeanManagerFactory {

    /**
     * 静态方法，创建 ManagerBean 对象
     *
     * @return
     */
    public static ManagerBean createManagerBean() {
        System.out.println("静态方法工厂方法");
        return new ManagerBean();
    }

    /**
     * 非静态方法，需要把 PersonServiceFactory 也交给容器管理
     *
     * @return
     */
    public ManagerBean managerBean() {
        System.out.println("工厂非静态方法");
        return new ManagerBean();
    }
}
